USE [WenOrder]
GO
/****** Object:  Table [dbo].[w_user]    Script Date: 2021/9/24 21:15:15 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[w_user](
	[ID] [int] IDENTITY(10000,1) NOT NULL,
	[Name] [nvarchar](50) NULL,
	[Password] [nvarchar](50) NULL,
	[Addtime] [datetime] NULL,
	[AddUserName] [nvarchar](50) NULL,
	[del] [int] NULL,
	[deltime] [datetime] NULL,
	[delUserName] [nvarchar](50) NULL,
	[UserCheck] [nvarchar](50) NULL,
 CONSTRAINT [PK_w_user] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[w_user_power]    Script Date: 2021/9/24 21:15:15 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[w_user_power](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[username] [nvarchar](50) NULL,
	[UserControlName] [nvarchar](50) NULL,
	[UserControlText] [nvarchar](500) NULL,
	[PowerName] [nvarchar](50) NULL,
	[PowerState] [int] NULL,
 CONSTRAINT [PK_w_user_power] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[w_user_power_group]    Script Date: 2021/9/24 21:15:15 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[w_user_power_group](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserControlName] [nvarchar](50) NULL,
	[UserControlText] [nvarchar](500) NULL,
	[PowerName] [nvarchar](50) NULL,
 CONSTRAINT [PK_w_user_group_power] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[w_user] ADD  CONSTRAINT [DF_w_user_Addtime]  DEFAULT (getdate()) FOR [Addtime]
GO
ALTER TABLE [dbo].[w_user] ADD  CONSTRAINT [DF_w_user_del]  DEFAULT ((1)) FOR [del]
GO
